package joyson.email.utils;

import org.apache.commons.lang3.time.DateFormatUtils;

import java.util.Date;

/**
 * @description:
 * @Author ke
 * @Date 2024/5/19 11:52
 */
public class DateTimeUtil {

    public static String getStartTime(){
        String format = DateFormatUtils.format(new Date(), "yyyy-MM-dd");
        return format + " 00:00:00";
    }
    public static String getEndTime(){
        String format = DateFormatUtils.format(new Date(), "yyyy-MM-dd");
        return format + " 23:59:59";
    }
}
